package com.ncloud.crm.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import com.ncloud.crm.entity.BsAccount;



@Mapper
public interface BsAccountMapper {
	
	@Insert("insert into bs_account(acct_id, cust_id, acct_name, acct_state, create_time, create_user, destory_time, remark)"
            + " values(#{acctId},#{custId},#{acctName},#{acctState},#{createTime},#{createUser},#{destoryTime},#{remark})")
	int insertBsAcct(BsAccount acct);
	
	@Update("update bs_account set acct_name=#{acctName},acct_state=#{acctState},update_time=#{updateTime},"
			+ "update_user=#{updateUser},destory_time=#{destoryTime},remark=#{remark} where acct_id=#{acctId}")
	int updateBsAcct(BsAccount acct);
	
}